<?php header ("Content-Type:text/xml"); ?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<tours>
	<tourcontainer title="<?php echo $title; ?>" days="<?php echo $days; ?>" nights="<?php echo $nights; ?>" home="<?php echo $home; ?>"
			 ekskurs1="<?php if(isset($e1))echo $e1['name']; ?>" 
			 desc1="<?php if(isset($e1))echo $e1['desc']; ?>"  
			 ekskurs2="<?php if(isset($e2))echo $e2['name']; ?>"  
			  desc2="<?php if(isset($e2))echo $e2['desc']; ?>"  
			 ekskurs3="<?php if(isset($e3))echo $e3['name']; ?>"  
			  desc3="<?php if(isset($e3))echo $e3['desc']; ?>"  
			 ekskurs4="<?php if(isset($e4))echo $e4['name']; ?>" 
			  desc4="<?php if(isset($e4))echo $e4['desc']; ?>"   
			 ekskurs5="<?php if(isset($e5))echo $e5['name']; ?>"  
			  desc5="<?php if(isset($e5))echo $e5['desc']; ?>"  
			 ekskurs6="<?php if(isset($e6))echo $e6['name']; ?>" 
			  desc6="<?php if(isset($e6))echo $e6['desc']; ?>"  
			 podarok="<?php echo $podarok; ?>" 
			 
			 photo="<?php echo $photo; ?>">
		<yearitem value="<?php echo $year; ?>">
			<monthitem value="<?php echo $month; ?>" >
			<?php foreach($arraydays as $key=>$day):?>
				<dayitem value="<?php echo $key; ?>">
				<?php foreach($day as $key=>$value):?>
						<hotelitem stars="<?php echo $key; ?>">
							<priceitem type="single" value="<?php echo $value['SNGL']; ?>"/>
							<priceitem type="double" value="<?php echo $value['DBL']; ?>"/>
							<priceitem type="triple" value="<?php echo $value['TRPL']; ?>"/>
							<priceitem type="child"  value="<?php echo $value['CHLD']; ?>"/>
							<priceitem type="dinner" value="<?php echo $value['HB']; ?>"/>
						</hotelitem>
					<?php  endforeach; ?>
				</dayitem>
				<?php  endforeach; ?>
			</monthitem>
		</yearitem>
	</tourcontainer>
</tours>
